package day7.zhujie;

/**
 * @author oldliu
 * @since 1.0
 */
public class Calc {
    public String brand;
    @MyTest(before = "add之前")
    public int add(int a,int b){
        return a+b;
    }
    @MyTest(before = "乘法之前",after = "乘法之后")
    public int mul(int a,int b){
        return a*b;
    }
    public int div(int a,int b){
        return a/b;
    }
    @Override
    public boolean equals(Object c){
        if(c instanceof Calc)
            return  this.brand.equals(((Calc)c).brand);
        return false;
    }

//    @Override
//    public boolean equals(Object obj) {
//        return super.equals(obj);
//    }
}
